package com.sh.data.engine.application.model.request.normalization;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author : mingxi.xpb
 * @date : 2022/1/10 18:45
 */
@Data
@Schema
public class MoveThemeRequest {

    @Schema(description = "移动的主题id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "id值不能为空")
    private String moveThemeId;

    @Schema(description = "移动的方向,1为向上移动，-1为向下移动", allowableValues = {"1", "-1"}, requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull
    private Integer direction;

    @Schema(description = "目标主题的id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "id值不能为空")
    private String targetThemeId;
}
